package com.xxxx.manager.service.impl;

import com.xxxx.manager.mapper.SuppliersMapper;
import com.xxxx.manager.pojo.Suppliers;
import com.xxxx.manager.pojo.SuppliersExample;
import com.xxxx.manager.service.SuppliersService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SuppliersServiceImpl implements SuppliersService {

    @Resource
    private SuppliersMapper suppliersMapper;

    /**
     * 查询所有供应商
     */
    @Override
    public List<Suppliers> selectAllSuppliers() {
        SuppliersExample example = new SuppliersExample();
        return suppliersMapper.selectByExample(example);
    }
}
